﻿@model TumbaloSoft.Models.Observacion

@{
    ViewBag.Title = "AtenderObservacion";
    if (ViewBag.permiso == 3 || ViewBag.permiso == 0)
    {

        Layout = "~/Views/Shared/_AdministradorGeneralLayout.cshtml";

    }

    if (ViewBag.permiso == 2)
    {

        Layout = "~/Views/Shared/_AdministradorEdificiosLayout.cshtml";

    }
}
    <div class="body2">
        <div class="main">
            <section id="content">
                <div class="wrapper">
                    <!-- Menu -->
                    <article class="col0">
                           <nav class="urbangreymenu">
                                <h3 class="headerbar">Observaciones</h3>
                                    <ul id="subMenu">
                                        <li><h5>@Html.ActionLink("Consultar Observacion","ConsultarObservacion","Observacion")</h5></li>   
                                    </ul>
                            </nav>
                    </article>

                    <article class="col5">
                        <div>&nbsp</div>
                    </article>

                    <!--Formulario-->
                    
                    <!--Formulario-->
                    <article class="col1" style="width: 500px">
                        <form id="form_1" method="post" style="height: 100%">
                            <div class="pad1">
                                <h2 class="pad_bot1 pad_top1">Atender Observacion: </h2>                              
                                            <!--IDOBSERVACION-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>IDObservacion:</span></td>
                                                        <td style="width: 210px">                                                                                            		                                                                                            	
											            @Html.TextBoxFor(model => model.prIdObservacion, new {@readonly="readonly" })
											            </td>
                                                    </tr>
                                                </table>
                                            </div>                 
                                                                                              
                                            <!--LISTA EDIFICIOS-->
                
                                            <div class="row_select"">
                                                <table style="width:420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>Edificio*:</span></td>
                                                        <td style="width: 210px">   
                                                            <select name="prEdificioRegistro.prIdEdificio" disabled="disabled">                                                                                                                                                                                                                                 
                                                                    <option value="@Model.prEdificioRegistro.prIdEdificio">@Model.prEdificioRegistro.prNombre</option>                                                                
                                                            </select>
                                                        </td>                                              
                                                    </tr>
                                                </table>
                                            </div>      
                                                                             
                                       
                                            <!--FECHADEREGISTRO-->
                                            <div class="row">
                                                <table style="width: 420px">
                                                    <tr>
                                                        <td style="width: 210px"><span>Fecha Observación*:</span></td>
                                                        <td style="width: 210px"> 
                                                            @if (Model != null)
                                                            {
                                                                    <input class="input" disabled="disabled" name="prFechaRegistro"  value="@Model.prFechaRegistro.ToShortDateString()" id="datepicker"/>
                                                                    @Html.ValidationMessageFor(model => model.prFechaRegistro, null)                                                                 
                                                            }
                                                            else
                                                            {
                                                                    <input class="input" disabled="disabled" />
                                                            }
                                                                           </td>
                                                    </tr>
                                                </table>                                                
                                            </div>

                                            <!--DESCRIPCION-->
                                            <div  class="wrapper">
                                                <span><br>Descripción*:</span>
                                                <table style="width: 420px">					    
                                                @Html.TextAreaFor(model => model.prDescripcion,new {style="max-width:50em;max-height:25ex;", disabled="true"}) 
                                                </table>  
                                                <br>
										    </div>  

                                <!--BOTONES-->
                                <table style="width: 500px">
                                    <tr>
                                        <td style="width: 167px"><a href="#" class="button" onclick="document.getElementById('form_1').submit()">Atender</a></td>
                                        <td style="width: 167px"><a href="javascript:history.go(-1)" class="button" onclick="document.getElementById('form_1').cancel()">Cancelar</a></td>
                                                                  </tr>
                                </table>
                                <br>
                                <br>
                            </div>
                        </form>
                    </article>

                </div>
            </section>
        </div>
    </div>